//
//  PPRotateViewCell.m
//  powercloudlefu
//
//  Created by 彭思远 on 2018/8/13.
//  Copyright © 2018年 Peng. All rights reserved.
//

#import "PPRotateViewCell.h"
#import <SDWebImage/SDWebImage.h>
#import "UIView+Category.h"
#import "UIView+AutoLayout.h"

@interface PPRotateViewCell()
@property (nonatomic, strong) BannarModel *cellModel;
@property (nonatomic, strong) UIImageView *cellImageView;
@end

@implementation PPRotateViewCell

- (void)initWithModel:(BannarModel *)model{
    self.cellModel = model;
    UIImage *headerImage = [UIImage imageNamed:@"WechatIMG"];
    [self.cellImageView sd_setImageWithURL:[NSURL URLWithString:model.logo] placeholderImage:headerImage];
}

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor clearColor];
        [self addImage];
    }
    return self;
}

- (void)addImage{
    self.cellImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.cellImageView withInsets:UIEdgeInsetsZero];
}

@end
